######################################################################################
#  author:       LX
#  create time: 2021/11/02
#  description: blueprint register
######################################################################################
import logging
from flask import Blueprint
from blueprint.common import news_bp, users_bp, carbon_images_bp, carbon_files_bp, lecture_bp
from blueprint.common import carbon_finance_bp, carbon_alipay_bp, carbon_trade_bp


def register_blueprint(flask_app):
    logging.debug("register_blueprint......")

    flask_app.register_blueprint(news_bp, url_prefix='/back-server/news')
    flask_app.register_blueprint(users_bp, url_prefix='/back-server/users')
    flask_app.register_blueprint(carbon_images_bp, url_prefix='/back-server/carbon_images')
    flask_app.register_blueprint(carbon_files_bp, url_prefix='/back-server/carbon_files')
    flask_app.register_blueprint(carbon_finance_bp, url_prefix='/back-server/carbon_finance')
    flask_app.register_blueprint(carbon_alipay_bp, url_prefix='/back-server/alipay')
    flask_app.register_blueprint(carbon_trade_bp, url_prefix='/back-server/trade')
    flask_app.register_blueprint(lecture_bp, url_prefix='/back-server/lecture')

